# -*- coding: UTF-8 -*-

# Simple functor for function delegation.
class functor(object):
	def __init__( self, fn, *args ):
		self.fn = fn
		self.args = args

	def __call__( self, *args ):
		self.fn( *(self.args + args) )
